{include file="public/header" /}
<body class="hide-top">
<div class="profile-news">
    <p class="flex-center">
        <img src="{if $user.photo}{$user.photo}{else}cache('system')['default_photo']{/if}"  id="photo" alt="">
    </p>
    <div>
        <p class="name">{$user.nickname}【{$user.code}】
            {if $user.level}<a class="layui-badge layui-bg-green" style="background-color:#1CC87A!important;">{$user.level.title}</a>{/if}
        </p>
        <p>手机号：<?php echo substr_replace($user->mobile,'****',3,4);?></p>
    </div>
</div>

<!--<ul class="profile-nav">-->
<!--    {foreach name="assets" key="key" item="vo"}-->
<!--    <li onclick="load_href('{:url(\'account/record\',[\'type\'=>$key])}',2)">-->
<!--        <p class="num"><?php echo $user->assets->$key;?></p>-->
<!--        <p>{$vo}</p>-->
<!--    </li>-->
<!--    {/foreach}-->
<!--</ul>-->

<div class="profile-img" onclick="load_href('{:url(\'remit/index\')}',2)">
    <img src="/static/index/img/icon18.png" alt="">
    <div class="flex-layout">
        <div>
            <p class="name">充值</p>
            <p>{:cache('system')['web_site_title']}</p>
        </div>
        <p class="flex-center bgc">立即充值</p>
    </div>
</div>

<div class="profile-order bgc">
    <div class="flex-layout">我的订单
        <p class="all" onclick="load_href('{:url(\'order/my_order\')}',2)">全部 <i class="layui-icon layui-icon-right"></i></p>
    </div>
    <ul class="profile-list">
        <li>
            <a href="{:url('order/my_order')}?type=1">
                <p class="flex-center">
                    <img src="/static/index/img/icon19.png" alt="">
                    <?php $count = getOrderCount($user['id'],1);?>
                    {if $count > 0}
                    <span>{$count}</span>
                    {/if}
                </p>
                <p>待付款</p>
            </a>
        </li>
        <li>
            <a href="{:url('order/my_order')}?type=2">
                <p class="flex-center">
                    <img src="/static/index/img/icon20.png" alt="">
                    <?php $count = getOrderCount($user['id'],2);?>
                    {if $count > 0}
                    <span>{$count}</span>
                    {/if}
                </p>
                <p>待发货</p>
            </a>
        </li>
        <li>
            <a href="{:url('order/my_order')}?type=3">
                <p class="flex-center">
                    <img src="/static/index/img/icon21.png" alt="">
                    <?php $count = getOrderCount($user['id'],3);?>
                    {if $count > 0}
                    <span>{$count}</span>
                    {/if}
                </p>
                <p>待收货</p>
            </a>
        </li>
        <li>
            <a href="{:url('order/my_order')}?type=4">
                <p class="flex-center">
                    <img src="/static/index/img/icon22.png" alt="">
                </p>
                <p>已完成</p>
            </a>
        </li>

    </ul>
</div>
<div class="profile-order bgc">
    <div class="flex-layout">我的缔造
        <p class="all" onclick="load_href('{:url(\'wholesale/my_group_order\')}',2)">全部 <i class="layui-icon layui-icon-right"></i></p>
    </div>
    <ul class="profile-list">
        <li>
            <a href="{:url('wholesale/my_group_order')}?type=4">
                <p class="flex-center">
                    <img src="/static/index/img/icon19.png" alt="">
                    <?php $count = getOrderCountGroup($user['id'],4);?>
                    {if $count > 0}
                    <span>{$count}</span>
                    {/if}
                </p>
                <p>缔造中</p>
            </a>
        </li>
        <li>
            <a href="{:url('wholesale/my_group_order')}?type=1">
                <p class="flex-center">
                    <img src="/static/index/img/icon20.png" alt="">
                </p>
                <p>绿色权益</p>
            </a>
        </li>
        <li>
            <a href="{:url('wholesale/my_group_order')}?type=2">
                <p class="flex-center">
                    <img src="/static/index/img/icon21.png" alt="">
                    <?php $count = getOrderCountGroup($user['id'],2);?>
                    {if $count > 0}
                    <span>{$count}</span>
                    {/if}
                </p>
                <p>红色权益</p>
            </a>
        </li>
        <li>
            <a href="{:url('wholesale/my_group_order')}?type=3">
                <p class="flex-center">
                    <img src="/static/index/img/icon22.png" alt="">
                    <?php $count = getOrderCountGroup($user['id'],3);?>
                    {if $count > 0}
                    <span>{$count}</span>
                    {/if}
                </p>
                <p>黄色权益</p>
            </a>
        </li>

    </ul>
</div>

<div class="profile-order bgc profile-lists">
    <div class="flex-layout">我的工具</div>
    <ul class="profile-list">
        <li>
            <a href="{:url('user/info')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon24.png" alt="">
                </p>
                <p>个人资料</p>
            </a>
        </li>
        <li>
            <a href="{:url('user/my_card')}">
                <p class="flex-center">
                    <img src="/static/index/img/vip.png" alt="">
                </p>
                <p>我的权益</p>
            </a>
        </li>
        <li>
            <a href="{:url('user/methodList')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon30.png" alt="">
                </p>
                <p>收款方式</p>
            </a>
        </li>
        <li>
            <a href="{:url('account/index')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon27.png" alt="">
                </p>
                <p>我的资产</p>
            </a>
        </li>
        <li>
            <a href="{:url('user/my_team')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon25.png" alt="">
                </p>
                <p>我的团队</p>
            </a>
        </li>
        <li>
            <a href="{:url('user/share')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon26.png" alt="">
                </p>
                <p>邀请中心</p>
            </a>
        </li>
        <li>
            <a href="{:url('remit/index')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon23.png" alt="">
                </p>
                <p>账户充值</p>
            </a>
        </li>
        <li>
            <a href="{:url('draw/index')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon27.png" alt="">
                </p>
                <p>账户提现</p>
            </a>
        </li>
        <li>
            <a href="{:url('draw/index_fd')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon27.png" alt="">
                </p>
                <p>FD提现</p>
            </a>
        </li>
        <li>
            <a href="{:url('transfer/index')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon28.png" alt="">
                </p>
                <p>钱包互转</p>
            </a>
        </li>

        <li>
            <a href="{:url('exchange/index')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon34.png" alt="">
                </p>
                <p>我要转换</p>
            </a>
        </li>
        <li>
            <a href="{:url('security/password')}?type=password">
                <p class="flex-center">
                    <img src="/static/index/img/icon30.png" alt="">
                </p>
                <p>安全中心</p>
            </a>
        </li>
        <li>
            <a href="{:url('message/index')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon31.png" alt="">
                </p>
                <p>留言反馈</p>
            </a>
        </li>
        <li>
            <a href="{:url('address/index')}">
                <p class="flex-center">
                    <img src="/static/index/img/icon32.png" alt="">
                </p>
                <p>收货地址</p>
            </a>
        </li>
        <li>
            <a href="javascript:;" class="logout">
                <p class="flex-center">
                    <img src="/static/index/img/icon35.png" alt="">
                </p>
                <p>退出登录</p>
            </a>
        </li>
    </ul>
</div>
{include file="public/menu" select="5" /}
</body>
{include file="public/footer"/}
<script>
    $('.logout').click(function (){
        layer.confirm('是否退出登录？', {title: '请确认'}, function (index) {
            _ajax('{:url("user/logout")}');
        });
    });
</script>
</html>